package cn.kpi.dao.workassessment;

import cn.kpi.common.persistence.MyBatisDao;
import cn.kpi.entity.workassessment.GroupOrgEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisDao
public interface GRightsDao {
//	public List<RoleEntity> GetRoleList(@Param("where") String where) throws Exception;
//	public List<RoleEntity> GetRoleListLimit(@Param("where") String where, @Param("beginrow") int beginrow, @Param("endrow") int endrow) throws Exception;
//	public int GetRoleListLimitCount(@Param("where") String where) throws Exception;
//
//	public List<RoleUserEntity> GetRoleUserList(@Param("where") String where, @Param("roleid") Long roleid)throws Exception;
//	public int DeleteRoleUser(@Param("roleid") Long roleid)throws Exception;
//	public int InsertRoleUserBatch(@Param("list") List<Long> list, @Param("roleid") Long roleid)throws Exception;
//	public int InsertRoleUser(@Param("userid") Long userid, @Param("roleid") Long roleid)throws Exception;
//
//	public List<RoleMenuEntity> GetRoleMenuList(@Param("roleid") Long roleid)throws Exception;
//	public int DeleteRoleMenu(@Param("roleid") Long roleid)throws Exception;
//	public int InsertRoleMenuBatch(@Param("list") List<Long> list, @Param("roleid") Long roleid)throws Exception;
//
	public List<GroupOrgEntity> GetGroupOrgList(@Param("groupid") Long groupid)throws Exception;
	public int DeleteGroupOrg(@Param("groupid") Long roleid)throws Exception;
	public int InsertGroupOrgBatch(@Param("list") List<Long> list, @Param("groupid") Long roleid)throws Exception;

	public  int updateGroupOrgOrder( @Param("groupid") Long groupid);
//	public int DeleteRoleUserByUserid(@Param("roleid") Long roleid, @Param("userid") Long userid)throws Exception;
}
